

// import 'element-plus/dist/index.css'
import 'vant/lib/index.css';

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 导入Vant组件库
import Vant from 'vant';
import App from './App.vue'
import router from './router'

const app = createApp(App)

//注册elementplus图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
// 使用Vant组件库
app.use(Vant);
app.use(pinia)
app.use(router)

app.mount('#app')
